# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=font-tiresias
pkgver=0_git20200704
pkgrel=0
_gitrev=93e9ac3966b5a5fa1aed67df38deb09cc93e3285
pkgdesc="Tiresias font family"
# the original upstream is dead, but the font was released under GPLv3+
url="https://salsa.debian.org/fonts-team/fonts-tiresias"
arch="noarch"
license="GPL-3.0-or-later"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://salsa.debian.org/fonts-team/fonts-tiresias/-/archive/$_gitrev/fonts-tiresias-$_gitrev.tar.gz"
builddir="$srcdir/fonts-tiresias-$_gitrev"
options="!check" # is font

package() {
	mkdir -p "$pkgdir"/usr/share/licenses/$pkgname

	for font in info key lp pc sign; do
		local target="$pkgdir"/usr/share/fonts/tiresias-$font
		mkdir -p "$target"
		unzip -d "$target" ${font}font.zip

		mv "$target"/COPYING/gpl.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.$font
		rm -rf "$target"/COPYING
	done
}

sha512sums="
3d8a12a6f5c13a5d0f975a08522579f2c818218be31023e6a75f11a7a1f82d1b8bc4ff30f691c19964e07cd6ce85074fbfc0883ae053e228435ec1bce81309e4  font-tiresias-0_git20200704.tar.gz
"
